package edu.info.manager.entry;

import edu.info.manager.controller.StudentController;
import edu.info.manager.controller.TeacherController;

import java.util.Scanner;

public class InfomanagerSystem {
    public static void main(String[] args) {
        StudentController stu = new StudentController();
        TeacherController tea=new TeacherController();
        Scanner sc = new Scanner(System.in);
        while (true) {
            System.out.println("--------欢迎来到黑马信息管理系统--------");
            System.out.println("请输入您的选择: 1.学生管理  2.老师管理  3.退出");
            int choose = sc.nextInt();
            switch (choose) {
                case 1:
                    System.out.println("学生管理");

                    stu.start();
                    break;
                case 2:
                    System.out.println("老师管理");
                    tea.TeacherStart();
                    break;
                case 3:
                    System.out.println("退出");
                    System.exit(0);
                    break;
                default:
                    System.out.println("你的输入有误，请重新输入");
                    break;

            }

        }
    }
}
